import api from './api'
//添加收藏
export function saveCollect(data) {
  return api.post('/order/disheCollect', data, { login: false })
}
//更新收藏
export function updataCollect(data) {
  return api.put('/order/disheCollect', data, { login: false })
}
//删除收藏
export function delCollect(data) {
  return api.delete('/order/disheCollect/'+data)
}
//收藏
export function collectList(data) {
  return api.get('/order/disheCollect/list', data, { login: false })
}

//取消收藏
export function cancelCollect(data) {
  return api.get('/order/disheCollect/cancelCollect', data, { login: false })
}

